package com.maxjay.component.simplelist.model;

import org.apache.commons.lang.StringUtils;

/**
 * 查询方案配置信息
 * 
 * @author zhaixm
 *
 */
public class QuerySchemeConfig {
	
	private ViewConfig viewConfig;
	
	public ViewConfig getViewConfig() {
		return viewConfig;
	}

	public void setViewConfig(ViewConfig viewConfig) {
		this.viewConfig = viewConfig;
	}

	/**
	 * 查询方案列表页面配置
	 * 
	 * @author zhaixm
	 *
	 */
	public class ViewConfig {
		
		/**
		 * 列表页面地址
		 */
		private String listPageLocation = "/component/simplelist/simpleList.jsp";
		
		/**
		 * 列表页面插件
		 */
		private String listPluginScript = "";
		
		public ViewConfig() {
		}
		
		public ViewConfig(String listPageLocation) {
			super();
			if (StringUtils.isNotBlank(listPageLocation)) {
				this.listPageLocation = listPageLocation;
			}
		}
		
		public String getListPageLocation() {
			return listPageLocation;
		}

		public void setListPageLocation(String listPageLocation) {
			if (StringUtils.isNotBlank(listPageLocation)) {
				this.listPageLocation = listPageLocation;
			}
		}

		public String getListPluginScript() {
			return listPluginScript;
		}

		public void setListPluginScript(String listPluginScript) {
			if (StringUtils.isNotBlank(listPluginScript)) {
				this.listPluginScript = listPluginScript;
			}
		}
		
	}
	
}
